package com.tsmti.business.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @Package：com.tsmti.business.entity
 * @Class：PimsSysReqField
 * @Description： TODO
 * @Author：king
 * @Date：Created in 2018/11/12 10:07
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "PIMS_SYS_REQ_FIELD")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class PimsSysReqField extends BaseDataEntity<Long> {
    /**
     * id
     */
    private Long id;
    /**
     * 对象ID(WEB页面中的元素ID)
     */
    private String fieElementId;
    /**
     * 对象名称
     */
    private String fieElementName;
    /**
     * 对象类型(元素类型)
     */
    private String fieElementType;
    /**
     * 显示级别
     */
    private Long fieShowLevel;
    /**
     * 上级对象ID
     */
    private Long fiePElementId;
    /**
     * 触发函数
     */
    private String fieInvokeFunc;
    /**
     * 具体函数
     */
    private String fieSpecificFunc;
    /**
     * CSS样式
     */
    private String fieCss;
    /**
     * 输入框类型
     */
    private String fieType;
    /**
     * 默认值
     */
    private String fieDefaultValue;
    /**
     * 显示顺序
     */
    private Double fieShowOrder;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_SYS_REQ_FIELD")
    @SequenceGenerator(name = "SEQ_SYS_REQ_FIELD", sequenceName = "SEQ_SYS_REQ_FIELD", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "FIEELEMENTID")
    public String getFieElementId() {
        return fieElementId;
    }

    public void setFieElementId(String fieElementId) {
        this.fieElementId = fieElementId;
    }

    @Basic
    @Column(name = "FIEELEMENTNAME")
    public String getFieElementName() {
        return fieElementName;
    }

    public void setFieElementName(String fieElementName) {
        this.fieElementName = fieElementName;
    }

    @Basic
    @Column(name = "FIEELEMENTTYPE")
    public String getFieElementType() {
        return fieElementType;
    }

    public void setFieElementType(String fieElementType) {
        this.fieElementType = fieElementType;
    }

    @Basic
    @Column(name = "FIESHOWLEVEL")
    public Long getFieShowLevel() {
        return fieShowLevel;
    }

    public void setFieShowLevel(Long fieShowLevel) {
        this.fieShowLevel = fieShowLevel;
    }

    @Basic
    @Column(name = "FIEPELEMENTID")
    public Long getFiePElementId() {
        return fiePElementId;
    }

    public void setFiePElementId(Long fiePElementId) {
        this.fiePElementId = fiePElementId;
    }

    @Basic
    @Column(name = "FIEINVOKEFUNC")
    public String getFieInvokeFunc() {
        return fieInvokeFunc;
    }

    public void setFieInvokeFunc(String fieInvokeFunc) {
        this.fieInvokeFunc = fieInvokeFunc;
    }

    @Basic
    @Column(name = "FIESPECIFICFUNC")
    public String getFieSpecificFunc() {
        return fieSpecificFunc;
    }

    public void setFieSpecificFunc(String fieSpecificFunc) {
        this.fieSpecificFunc = fieSpecificFunc;
    }

    @Basic
    @Column(name = "FIECSS")
    public String getFieCss() {
        return fieCss;
    }

    public void setFieCss(String fieCss) {
        this.fieCss = fieCss;
    }

    @Basic
    @Column(name = "FIETYPE")
    public String getFieType() {
        return fieType;
    }

    public void setFieType(String fieType) {
        this.fieType = fieType;
    }

    @Basic
    @Column(name = "FIEDEFAULTVALUE")
    public String getFieDefaultValue() {
        return fieDefaultValue;
    }

    public void setFieDefaultValue(String fieDefaultValue) {
        this.fieDefaultValue = fieDefaultValue;
    }

    @Basic
    @Column(name = "FIESHOWORDER")
    public Double getFieShowOrder() {
        return fieShowOrder;
    }

    public void setFieShowOrder(Double fieShowOrder) {
        this.fieShowOrder = fieShowOrder;
    }
}
